---
title: Twitter
---

>[Twitter](https://twitter.com/) is an online social media and social networking service.


## Installation and Setup

<CodeGroup>
```bash pip
pip install tweepy
```

```bash uv
uv add tweepy
```
</CodeGroup>

We must initialize the loader with the `Twitter API` token, and we need to set up the Twitter `username`.


## Document Loader

See a [usage example](/oss/integrations/document_loaders/twitter).

```python
from langchain_community.document_loaders import TwitterTweetLoader
```

## Chat loader

See a [usage example](/oss/integrations/chat_loaders/twitter).
